import request from '@/utils/request'

//获取维修列表
export function GetAssetsRepairList(params) {
  return request({
    url: '/Interface/GetRepairList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
//添加维修
export function AddAssetsRepair(params) {
  return request({
    url: '/Interface/SaveRepair',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//查询维修详细
export function getAssetsRepairDetail(params) {
  return request({
    url: '/Interface/GetRepairSubList',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//获取可维修的资产列表(用于添加)
export function getAssetsCanRepair(params) {
  return request({
    url: '/Interface/GetDontWaitInStorage',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//维修归还
export function SaveRepairReturn(params) {
  return request({
    url: '/Interface/SaveRepairReturn',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}

//维修作废
export function RepairAssetsRevoke(params) {
  return request({
    url: '/Interface/SaveRepairClose',
    headers: {
      isNeedFixParmas: true,
    },
    method: 'post',
    data: params,
  })
}
